package com.hz.onlineshop.model

import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

object Network {

//    private const val baseUrl = "https://docs.apipost.cn/preview/1a28e17fa3c8f473/16838456ae6dc5c7/"

//    private const val BASEURL = "http://172.16.10.56:4523/m1/5513971-5190294-default/"
    private const val BASEURL = "https://apifoxmock.com/m1/5685514-5366450-default/"
    private val retrofit = Retrofit.Builder()
        .baseUrl(BASEURL).addConverterFactory(GsonConverterFactory.create())
        .build()

    fun <T> create(clazz: Class<T>): T {
        return retrofit.create(clazz)
    }
}